package com.blacktea.behavioralpatterns.strategypattern;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @description: 支付宝支付策略
 * @author: black tea
 * @date: 2023/3/26 17:58
 */
@Component
@Slf4j
public class AliPayStrategy implements  PayStrategy {

    @Override
    public void pay(BigDecimal amount) {
        log.info("支付宝支付，金额{}", amount);
    }
}
